import QtQuick 2.0
import QtQuick.Controls 2.3

Button {
    id:handButton
    text: "提交"

    contentItem: Text {
        text: handButton.text
        font: handButton.font
        opacity: enabled ? 1.0 : 0.3
        color:"#ffffff"
        horizontalAlignment: Text.AlignHCenter
        verticalAlignment: Text.AlignVCenter
        elide: Text.ElideRight
    }

    background: Rectangle {
        implicitWidth: 157
        implicitHeight: 40
        opacity: enabled ? 1 : 0.3
        color:handButton.down?"#31b0d5":"#2a9cff"
        radius: 2
    }

}
